package com.ukao.steward.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

import me.yokeyword.fragmentation.SupportFragment;

/**
 * Created by YoKeyword on 16/2/5.
 */
public class FactortTabFragmentAdapter extends FragmentPagerAdapter {

    private   List<SupportFragment> mFragmentData;
    public FactortTabFragmentAdapter(FragmentManager fm, List<SupportFragment> mFragmentData) {
        super(fm);
        this.mFragmentData=mFragmentData;
    }

    @Override
    public Fragment getItem(int position) {

      return  mFragmentData.get(position);
    }

    @Override
    public int getCount() {
        return mFragmentData.size();
    }


}
